@echo off
mkdir logs

if .{%2} =={} . goto sp
call viewtable %1 %2
goto end

:sp
call view %1

:end
